You are here: Statements and Functions > Stop
Syntax samples
STOP {<string expression>}
STOP
STOP "Normal termination"
Terminates the current replication and optionally displays a message. The simulation will then continue with the next replication. Use STOP to end a replication when the simulation has run long enough to provide sufficient statistical data.
Any logic.
Components
<string expression>
An optional message to display when the replication stops.
Example
In the example below, a STOP statement is used in Operation Logic to end the simulation whenever the variable Total_Complete reaches 100.
BREAK, BREAKBLK, RETURN, and PAUSE.